home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / rocketcar2.swf / scripts / frame_33 / PlaceObject2_448_309 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2008-09-24  |  793 b   |  42 lines

  1. onClipEvent(enterFrame){
  2.    _X = _root.fake._x;
  3.    _Y = _root.fake._y - 5;
  4.    if(_root.car.dead)
  5.    {
  6.       _visible = false;
  7.       return undefined;
  8.    }
  9.    if(_root.car.jet)
  10.    {
  11.       if(_root.fuel > 0)
  12.       {
  13.          if(Key.isDown(38))
  14.          {
  15.             _visible = true;
  16.             if(!sound)
  17.             {
  18.                if(_root.sound)
  19.                {
  20.                   _root.steam.start(0,99999);
  21.                   sound = true;
  22.                }
  23.             }
  24.          }
  25.       }
  26.    }
  27.    if(!Key.isDown(38) or _root.fuel < 0 or !_root.car.jet)
  28.    {
  29.       _visible = false;
  30.       _root.steam.stop();
  31.       sound = false;
  32.    }
  33.    if(_root.gravityType == "reverse")
  34.    {
  35.       _rotation = 180;
  36.    }
  37.    else
  38.    {
  39.       _rotation = 0;
  40.    }
  41. }
  42.